﻿<!DOCTYPE>

<html>
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=EDGE;IE=11;IE=8,chrome=1" />
    <title>日历维护</title>
    <link href="/InSiteWebApplication/Content/Easyui/themes/metro/easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/custom-easyui.css" rel="stylesheet" />
    <link href="/InSiteWebApplication/Content/Easyui/themes/icon.css" rel="stylesheet" />
    <style>
        .easyui-linkbutton{margin-left:20px;}
        .calendar {
                    display: inline-block;
                    margin:0 0 5px 5px
            }
         .linkbutton{width:53px;}
         #btnComboxSearch0,#btnComboxClear0{margin-left:0px}
         #btnComboxSearch1,#btnComboxClear1{margin-left:0px}
         #btnComboxSearch2,#btnComboxClear2{margin-left:0px}
    </style>
</head>
<body>
    <div class="panelSection">    
        <div class="easyui-panel " title="查询区域" style="padding:3px;width: 100%" 
        data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
        <div class="easyui-layout" style="min-height:650px;width:100%;">
        <!--日历维护区域-->
            <div data-options="region:'east',collapsible:false" style="width:300px;">
			    <div style="padding-left:20px;margin-top:10px">
                  <!-- <span style="margin-right: 10px;">日历模板:</span> -->
                   <table cellpadding="6">
                       <tr>
                        <td>日历模板:</td>
                        <td><input id="MAKECALENDARIDD"  style="width:170px"/></td>
                       </tr>
                   </table>
                </div>
                <div style="padding-left:20px">
                     <form id="calendarForm" method="post">
	    	            <table cellpadding="6">
                            <tr>
                                <td>年份:</td>
                                <td><input class="easyui-textbox" type="number" id="MAKEYEAR" name="MAKEYEAR" value="" style="width:170px"/></td>
                            </tr>
	    		            <tr>
	    			            <td><span style="color:red">日历名称:</span></td>
	    			            <td>
                                    <input  type="hidden" id="MAKECALENDARID" name="MAKECALENDARID" style="display:none" style="width:170px"></input>
                                    <input class="easyui-textbox" type="text" id="MAKECALENDARNAME" name="MAKECALENDARNAME"  style="width:170px"></input></td>
	    		            </tr>
	    		            <tr>
	    			            <td>是否启用:</td>
	    			            <td><select class="easyui-combobox" id="ISUSE"  name="ISUSE"  style="width:170px"><option value="0">是</option><option value="1">否</option></select></td>
	    		            </tr>
	    		            <tr>
	    			            <td>描述:</td>
	    			            <td>
                                    <input class="easyui-textbox" id="DESCRIPTION" name="DESCRIPTION" data-options="multiline:true" style="height:60px;width:170px"></input>
	    				     </td>
	    		            </tr>
	    	            </table>
	                </form>
                </div>
                <div style="text-align:center;padding:5px;margin-top:30px">
	    	        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.CreateMainCaData()">新建</a>
	    	        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.SaveOrUpdateMainCaData()">保存</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.DaleteMainCaData()">删除</a>
	            </div>
                <div style="text-align:center;padding:5px">
                    <p><a href="javascript:void(0)" class="easyui-linkbutton" onclick="page.BatchHolidaySet(0)">周六批量设定</a><a href="javascript:void(0)" class="easyui-linkbutton" onclick="page.BatchHolidaySet(1)">周日批量设定</a></p>
                    <p><a href="javascript:void(0)" class="easyui-linkbutton" onclick="page.BindRelationSet()">关系绑定设置</a></p>
                </div>
		    </div>
        <!--日历显示区域-->
		    <div data-options="region:'center',iconCls:'icon-ok'" style="padding:10px">
                <!--<div id="LYcalendar" class="easyui-calendar" style="width:25%;height:250px;"></div>-->
                <div id="LYcalendar1" class="easyui-calendar" style="width:24%;height:200px;"></div>
                <div id="LYcalendar2" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar3" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar4" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar5" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar6" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar7" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar8" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar9" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar10" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar11" class="easyui-calendar" style="width:24%;height:200px;" ></div>
                <div id="LYcalendar12" class="easyui-calendar" style="width:24%;height:200px;" ></div>
		    </div>   
        </div>
        </div> 
    </div>
    <!--天日历假期维护-->
     <div id="dd" style="display:none">
        <form id="ff" method="post" >
            <table style="">
                <tr style="">
                    <td align="right" width="100">日期：</td>
                    <td style="padding:10px 0"><input class="easyui-textbox" id="popStartDate" type="text" name="startDate" data-options="required:false,readonly:true" style="width:150px;" /></td>
                </tr>
                <tr style="">
                    <td align="right" width="100">持续天数：</td>
                    <td style="padding:10px 0"><input class="easyui-numberbox" id="popContinueDay" type="number" name="continueDay" data-options="min:1,value:1" style="width:150px;" /></td>
                </tr>
                <tr style="">
                    <td align="right" width="100">假期名称：</td>
                    <td style="padding:10px 0">
                        <input class="easyui-textbox" id="popHolidayName" type="text" name="holidayName" data-options="required:false" style="width:250px;" />
                        <input id="hdMakeCalendarID" name="MakeCalendarID" type="hidden" />
                        <input id="MakeCalendarDetailID" name="MakeCalendarDetailID" type="hidden" />
                    </td>
                </tr>
            </table>

        </form>
    </div>
    <div id="CalendarDialog"  style="display:none">
        <table>
         <tr>
          <td align="right" width="100">日历名称：</td>
           <td style="padding:10px 0"> </td>
         </tr>
        </table>
    </div>

    <div id="sp" style="display:none">
        <table id="selMakeCalendar"></table>
    </div>
    <div id="tb" style="padding:5px;height:auto">
        <span>年份：<input class="easyui-numberbox" style="width:100px;height:22px" id="MAKEYEARR"></span>
        <span>日历名称：<input class="easyui-textbox" style="width:100px;height:22px" id="MAKECALENDARNAMEE"></span>
        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.LoadMainCaData()">查询</a>
        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.ResetSearch()">重置</a>
        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="$('#sp').dialog('close')">关闭</a>
    </div>
    <!--日历关系设置-->
    <div id="BindRelationDialog" style="display:none">
        <div class="panelSection" style="width:50%;float:left">    
            <div class="easyui-panel " title="日历-工厂关系" style="padding:3px;" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
                <div><table id="fatory" style="height:184px;" data-options="rownumbers:true,toolbar:'#fatoryTool'"></table></div>
                <div id="fatoryTool" >
                    <input id="selFactory" name="Factory" class="easyui-combobox" style="width: 170px; height: 22px" data-options="prompt:'请选择分厂'"/>
                    <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.SaveRelationFactoryData()">保存</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.DaleteRelationFactoryData()" style="margin-left:0px">删除</a>
                </div>
            </div> 
        </div>
        <div class="panelSection" style="width:50%;float:left">    
            <div class="easyui-panel " title="日历-人员关系" style="padding:3px;" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
             <div id="EmployeeTool" >
                    <input name="EmployeeID" type="hidden" id="EmployeeID"/>
                    <span><div id="EmployeeCombox"></div></span>
                    <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.SaveRelationEmployeeData()">保存</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.DaleteRelationEmployeeData()" style="margin-left:0px">删除</a>
                </div>
            <div>
                    <table id="Employee" style="height:150px;" data-options="rownumbers:true,toolbar:'#EmployeeTool'"></table>
                    <div id="ppp" style="float: right" class="easyui-pagination" data-options="   
                     layout:['first','prev','next','last','manual','info'],              
                        total: 0,
                        showPageList: false,
                        showPageInfo: false,
                        showRefresh: false,
                        afterPageText:'共&nbsp{pages}&nbsp页',
                         buttons:[{
                                iconCls:'',
                                text:'Go',
                                group:'paging-tail-btns',
                                id:'ppageGo'
                        }]
                    ">
                        </div>
                </div>
            </div>
        </div>
        <div style="clear: both"></div>
        <div class="panelSection">    
            <div class="easyui-panel " title="日历-设备关系" style="padding:3px;" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
                 <div id="ResourceTool" >
                    <input name="ResourceID" type="hidden" id="ResourceID"/>
                    <span><div id="ResourceCombox"></div></span>
                    <span style="margin-left:10px"><input id="nextMakeCalendar" class="easyui-combobox" style="width: 120px; height: 22px" data-options="prompt:'下年日历选择'"/></span>
                    <a href="javascript:void(0)" class="easyui-linkbutton " onclick="page.SaveRelationResourceData()">保存</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="page.DaleteRelationResourceData(0)" style="margin-left:0">删除当年</a>
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="page.DaleteRelationResourceData(1)" style="margin-left:0px">删除下年</a>
                </div>
                <table id="Resource" style="height:200px;" data-options="rownumbers:true,toolbar:'#ResourceTool'"></table>
                    <div id="pp" style="float: right" class="easyui-pagination" data-options="   
                     layout:['first','prev','next','last','manual','info'],              
                        total: 0,
                        showPageList: false,
                        showPageInfo: false,
                        showRefresh: false,
                        afterPageText:'共&nbsp{pages}&nbsp页',
                         buttons:[{
                                iconCls:'',
                                text:'Go',
                                group:'paging-tail-btns',
                                id:'pageGo'
                        }]
                    ">
                        </div>
            </div>
        </div>
        
       
        <div class="panelSection" style="width:50%;float:left">    
            <div class="easyui-panel " title="日历-工区关系" style="padding:3px;" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
                 <div id="WorkcenterTool" >
                        <input id="WorkcenterID" name="Workcenter" class="easyui-combobox" style="width: 170px; height: 22px"data-options="prompt:'请选择工区'"/>
                        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.SaveRelationWorkcenterData()">保存</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.DaleteRelationWorkcenterData()" style="margin-left:0px">删除</a>
                    </div>
                <div><table id="Workcenter" style="height:150px;" data-options="rownumbers:true,toolbar:'#WorkcenterTool'"></table></div>
            </div>
        </div>
        <div class="panelSection" style="width:50%;float:left">    
            <div class="easyui-panel " title="日历-班组关系" style="padding:3px;" data-options="closable:false,collapsible:true,minimizable:false,maximizable:false"> 
                <div id="TeamTool" >
                        <input id="TeamID" name="Team" class="easyui-combobox" style="width: 170px; height: 22px" data-options="prompt:'请选择班组'"/>
                        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.SaveRelationTeamData()">保存</a>
                        <a href="javascript:void(0)" class="easyui-linkbutton linkbutton" onclick="page.DaleteRelationTeamData()" style="margin-left:0px">删除</a>
                 </div>
                <div><table id="Team" style="height:150px;" data-options="rownumbers:true,toolbar:'#TeamTool'"></table></div>
            </div>
        </div>
        <div style="clear: both"></div>
    </div> 
        <!--信息提示区域-->
     <div id="statusMessage" style="font-size: 14px; height: 40px"></div>
</body>
</html>
<script src="/InSiteWebApplication/Scripts/json2.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/jquery.easyui.min.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Content/Easyui/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/CustomPageJs/CustomCommon.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ApsJs/ApsMakeCalendarMaint.js" type="text/javascript"></script>
<script src="/InSiteWebApplication/Scripts/ZsJs/newselectCombox.js" type="text/javascript"></script>
